#ifndef _OSA_MUTEX_H_
#define _OSA_MUTEX_H_

#include <pthread.h>

typedef struct OSA_MutexHndl
{
  pthread_mutex_t lock;
}
OSA_MutexHndl;

#include <osa.h>

#ifdef __cplusplus
extern "C"
{
#endif

int OSA_mutexCreate(OSA_MutexHndl *hndl);
int OSA_mutexDelete(OSA_MutexHndl *hndl);
int OSA_mutexLock(OSA_MutexHndl *hndl);
int OSA_mutexUnlock(OSA_MutexHndl *hndl);

#ifdef __cplusplus
}
#endif

#endif /* _OSA_MUTEX_H_ */



